package com.fitness.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 预约实体类，对应数据库中的预约表
 */
public class Reservation implements Serializable {
    private Integer reservationId; // 预约ID，对应数据库 预约ID 字段
    private Integer memberId; // 会员ID，对应数据库 会员ID 字段
    private Integer projectId; // 项目ID，对应数据库 项目ID 字段
    private Timestamp reservationTime; // 预约时间，对应数据库 预约时间 字段
    private String status; // 预约状态，对应数据库 预约状态 字段

    // Getter 和 Setter 方法
    public Integer getReservationId() {
        return reservationId;
    }

    public void setReservationId(Integer reservationId) {
        this.reservationId = reservationId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Timestamp getReservationTime() {
        return reservationTime;
    }

    public void setReservationTime(Timestamp reservationTime) {
        this.reservationTime = reservationTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    // 重写 toString 方法，方便打印查看对象内容
    @Override
    public String toString() {
        return "Reservation{" +
                "reservationId=" + reservationId +
                ", memberId=" + memberId +
                ", projectId=" + projectId +
                ", reservationTime=" + reservationTime +
                ", status='" + status + '\'' +
                '}';
    }
}